package com.amos.muexamclient.sys.service.dto;


import com.alibaba.fastjson.JSONObject;
import com.amos.core.PageDTO;
import com.amos.muexamclient.sys.entity.SysConfigEntity;
import com.amos.muexamcore.core.MuEntity;
import com.amos.muexamcore.core.MuField;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * Copyright © 2018 五月工作室. All rights reserved.
 *
 * @Package com.amos.muexamclient.service.dto
 * @ClassName SysConfigDTO
 * @Description TODO
 * @Author Amos
 * @Modifier
 * @Date 2020-03-24 14:33:05
 * @Version 1.0
 **/
@MuEntity(table = "sys_config", entity = SysConfigEntity.class)
@Data
public class SysConfigDTO extends PageDTO implements Serializable {

    private static final long serialVersionUID = 1287946396882305867L;
    @MuField(remark = "参数名称", type = "varchar", length = 100, column = "config_name")
    private String configName;

    @MuField(remark = "参数键名", type = "varchar", length = 100, column = "config_key")
    private String configKey;

    @MuField(remark = "参数键值", type = "varchar", length = 500, column = "config_value")
    private String configValue;

    @MuField(remark = "系统内置（Y是 N否）", type = "char", length = 1, column = "config_type")
    private String configType;

    @MuField(remark = "创建者", type = "varchar", length = 64, column = "create_by")
    private String createBy;

    @MuField(remark = "更新者", type = "varchar", length = 64, column = "update_by")
    private String updateBy;

    @MuField(remark = "更新时间", type = "datetime", column = "update_time")
    private Date updateTime;

    @MuField(remark = "备注", type = "varchar", length = 500, column = "remark")
    private String remark;

    private Date beginTime;
    private Date endTime;

    @Override
    public String toString() {
        return JSONObject.toJSONString(this);
    }
}
